<?php 

$time=getTimestamp();
$checked="";
if ($currentObject->visible=="Y") $checked="checked";
?>
<input type="checkbox" id="visible_<?=$time?>" <?=$checked?>>


<script type="text/javascript">


$("#visible_<?=$time?>").change(function () {
	editTagvalue="N"; 
	if ($(this).attr('checked')=="checked") editTagvalue="Y"; 
	
	ajaxedittable("<?=$realtablename?>",<?=$currentObject->id?>,"visible",editTagvalue);
});

</script>